package com.seuic.hnapps.util;

public class Constants {

    //ip
//    public static final String IP = "190.190.11.134";//测试
    public static final String IP = "172.32.25.233";//正式
//    public static final String IP = "60.212.3.49";//模拟
    public static String X_NUM = "";
    // 长度头长度
    public static final int ATMP_RCIVE_LENGTH = 4;
    // 报文头长度
    public static final int ATMP_HEADER_LENGTH = 32;
    // 烟台银行ID标识
    public static final String YANTAI_BANKID = "04044560";
    // 终端软件版本号
    public static final String YANTAI_TERMVS = "00000000";
    // 报文版本号
    public static final String YANTAI_PACKVS = "01";
    // 测试终端号
    public static String YANTAI_TERMNO = "10405201";
    // 加密标志：管理交易0-不加密
    public static final String YANTAI_ENCFLG1 = "0";
    // 加密标志：业务交易，公网传输1-报文加密，专线传输2-磁道加密
    public static final String YANTAI_ENCFLG2 = "4";
    // 渠道标识
    public static final String YANTAI_CHANLENO = "10";
    // 终端批次号
    public static String YANTAI_BATCHNO = "0001";
    // 第22域，请按规范填写
    public static final String YANTAI_F22 = "051";
    // 终端各部件状态，请按实际填写
//    public static final String YANTAI_F57 = "10000000000111111111112017071020045718888811122221";
    public static final String YANTAI_F57 = "1000000000015" + "1" + "11188550" + DateUtil.getCurrentTime(DateUtil.NOMAL_DATETIME) + "88888800000000";
    // 终端主密钥
    public static String YANTAI_TERMTMK = "";
    // 终端PIN密钥
    public static String YANTAI_PINKEY = "";
    // 终端MAC密钥
    public static String YANTAI_MACKEY = "";
    // 终端磁道/报文加密密钥
    public static String YANTAI_TDKKEY = "";
    // 卡种
    public static String YANTAI_CARDTYPE = "2";
    // 测试卡号
    public static String DEMO_CARDNO = "6230010000000016";
    // 测试二磁
    public static String DEMO_TRACK2 = "6230010000000016=30121200111111112";
    // 测试三磁
    public static String DEMO_TRACK3 = "996223350022014820=1561560000000001001003000000010101025110=000000000000=000000000000=000000000000000000";
    // 测试交易密码
    public static String DEMO_PASSWD = "123456";
    // 测试交易芯片卡数据
    public static String DEMO_ICCDATA = "9F2608D85C6462921777B19F2701809F101307010103A00000040A01000009339459580E5E9F37044CE132CC9F36020497950500000000009A031907119C01319F02060000000000005F2A02015682027C009F1A0201569F03060000000000009F3303E0F8C89F3501229F1E0843413854353838348408A0000003330101019F090200029F631030343738363131300000000000000000";
    // 备付金账户
    public static String DEMO_F102 = "";
    // 测试转入账户
    public static String DEMO_INACCT = "6230010000000018";
    //稳利赢
    public static String DEMO_WLY = "";
    //超享赢
    public static String DEMO_CXY = "";
    // 终端是否使用国密算法
    public static boolean isSM = true;
    // 当终端启用国密算法时，需增加上送F53域  第2字节为4表示使用国密
    public static String DEMO_F53 = "0400000000000000";
    /**
     * 1.当启用国密算法时，管理类交易不加密，YANTAI_ENCFLG1 = "0"；业务类交易，YANTAI_ENCFLG2必须取值3或者4.
     * 且 boolean isSM = true
     * 2.当启用国际算法时，管理类交易不加密，YANTAI_ENCFLG1 = "0"；业务类交易，YANTAI_ENCFLG2必须取值1或者2.
     * 且 boolean isSM = false
     */

}
